package xyz.chatboxapp.chatbox;

import com.getcapacitor.BridgeActivity;
import android.util.Log;

public class MainActivity extends BridgeActivity {
    @Override
    public void onCreate(android.os.Bundle savedInstanceState) {
        // 在 super.onCreate 之前注册插件，确保 Bridge 初始化时就包含该插件
        Log.d("SystemOverlay", "MainActivity onCreate: registering SystemOverlayPlugin (pre-super)");
        registerPlugin(xyz.chatboxapp.chatbox.SystemOverlayPlugin.class);

        super.onCreate(savedInstanceState);
        Log.d("SystemOverlay", "MainActivity onCreate: after super.onCreate");
    }
}
